package com.ibeeking.found.cms.cp.rest.controller.v1.feign;

import com.ibeeking.found.cms.cp.rest.service.IPageBaseService;
import com.ibeeking.nematos.constants.enums.OperateLogTypeEnum;
import com.ibeeking.nematos.log.annotation.Log;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName PageBaseController控制器
 * @Description
 * @Author ibeeking
 * @Date 2021-05-08 16:05
 **/
@RestController
@RequestMapping("/cp/cms/feign/v1")
public class FeignController {

    @Resource
    private IPageBaseService pageBaseServiceImpl;

    @Log(logType = OperateLogTypeEnum.MODIFY, describe = "清除缓存")
    @PostMapping(value = "/removeCacheByIds")
    public Boolean removeCacheByIds(@RequestBody Long... ids) {
        return pageBaseServiceImpl.removeCacheByIds(ids);
    }

}